package top.codedance.iotp.loadblance.common;

import top.codedance.iotp.loadblance.calgorithm.*;

public enum CAlgorithmType {
    AUTO(CAuto.class), CYCLE(CCycle.class), RANDOM(CRandom.class), WEIGHT(CWeight.class);

    private Class<? extends CAdapter> adapter;
    CAlgorithmType(Class<? extends CAdapter> adapter){
        this.adapter = adapter;
    }

    public Class<? extends CAdapter> getAlgorithm() {
        return adapter;
    }
}
